<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.10/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        //单选框
        <input type="radio" value="男" v-model="sex">男
        <input type="radio" value="女" v-model="sex">女
        <p>选中的是：{{sex}}</p>
        //复选框
        <input type="checkbox" value="吃饭" v-model="like">吃饭
        <input type="checkbox" value="睡觉" v-model="like">睡觉
        <input type="checkbox" value="打豆豆" v-model="like">打豆豆
        <p>选中的是：{{like}}</p>
        //下拉框
        <select v-model="class1">
            <option value="91班">91班</option>
            <option value="92班">92班</option>
            <option value="93班">93班</option>
        </select>
        <p>选中的是：{{class1}}</p>
    </div>
    <script>
        const vm = new Vue({
            el:"#app",
            data:{   
                sex:"男",
                like:[],
                class1:"91班"
            },
        })
    </script>
</body>
</html>